#ifndef __xDef_H__
#define __xDef_H__
#if	!LINUX_SYSTEM
	#error only linux system supported
#endif

typedef char				CHAR;
typedef unsigned short		WCHAR;

#ifdef _UNICODE
typedef WCHAR				TCHAR;
#else
typedef char				TCHAR;
#endif

typedef unsigned char		BYTE, *LPBYTE;
typedef unsigned short		WORD;

typedef int					BOOL;
typedef int					*LPBOOL;
typedef int					HANDLE;
typedef unsigned int        UINT;

typedef unsigned long		DWORD;
typedef unsigned long		WPARAM;
typedef unsigned long		LPARAM;
typedef unsigned long		LRESULT;
typedef long long			INT64;
typedef unsigned long long	UINT64;

typedef double				DOUBLE;
typedef void				*LPVOID;

typedef CHAR				*LPSTR;
typedef WCHAR				*LPWSTR;
typedef TCHAR				*LPTSTR;
typedef const CHAR			*LPCSTR;
typedef const WCHAR			*LPCWSTR;
typedef const TCHAR			*LPCTSTR;


#define TRUE				(BOOL)(1)
#define FALSE				(BOOL)(0)

#define MAX_PATH			256

typedef struct  _SYSTEMTIME
{
	WORD wYear;
	WORD wMonth;
	WORD wDayOfWeek;
	WORD wDay;
	WORD wHour;
	WORD wMinute;
	WORD wSecond;
	WORD wMilliseconds;
}SYSTEMTIME;

typedef HANDLE				HMODULE;

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdarg.h>
#include <math.h>
#include <new>
#include <string.h>
#include <ctype.h>
#include <wchar.h>
#include <wctype.h>

#include <sys/types.h>
#include <sys/stat.h>
#include <sys/time.h>
#include <sys/timeb.h>

#endif //__xDef_H__
